import { Entity, Column, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm';

@Entity()
export class GroupToFlielist {
    @PrimaryGeneratedColumn('uuid')
    id: string;

    @Column()
    fileuuid: string;

    @Column()
    groupuuid: string;

    @Column()
    belong: string

    @Column({
        name: 'create_time',
        type: 'timestamp without time zone',
        default: () => 'CURRENT_TIMESTAMP',
    })
    create_time: Date;

    @UpdateDateColumn({
        name: 'update_time',
        type: 'timestamp',
        default: () => 'CURRENT_TIMESTAMP'
    })
    update_time: Date;
}
